-- @Author: 作者QQ381990860
-- @Date:   2021-10-27 16:55:29
-- @Last Modified by:   作者QQ381990860
-- @Last Modified time: 2022-09-17 02:54:18
local 场景类_传送 = class(窗口逻辑)
local tp,zts
local insert = table.insert

function 场景类_传送:初始化(根)
    self.ID = 333
    self.x = 204+(全局游戏宽度-800)/2
    self.y = 10
    self.xx = 0
    self.yy = 0
    self.注释 = "文本栏"
    self.可视 = false
    self.鼠标 = false
    self.焦点 = false
    self.可移动 = true
    tp = 根

    self.资源组 = {
        [1] = tp._自适应(0,1,350+200,171+360,3,9),
        [4] = tp._按钮(tp._自适应(18,4,16,16,4,3),0,0,4,true,true),
        [5] =  tp._自适应(9,1,410,75,3,9),
        [6] =  tp._自适应(9,1,300,40,3,9),
        [7] = tp.资源:载入('JM.dll',"网易WDF动画",0x2e0ba3e2),
        [8] = tp._自适应(4,1,330+200,95+360,3,9),
        [9] = tp.资源:载入('JM.dll',"网易WDF动画",0xE6490543),
        [10] = tp.资源:载入('JM.dll',"网易WDF动画",0x22D22D6D),
        [11] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 长安城"),
        [12] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 建邺城"),
        [13] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 傲来国"),
        [14] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 长寿村"),
        [15] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 西梁女国"),
        [16] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 宝象国"),
        [17] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 朱紫国"),
        [18] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 钱庄老板"),
        [19] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 钟馗"),
        [20] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 袁天罡"),
        [21] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 袁守城"),
        [22] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 商会总管"),
        [23] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 杜少海"),
        [24] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 镖局"),
        [25] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 皇宫护卫"),
        [26] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 土地公公"),
        [27] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 闯关使者"),
        [28] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 百兽王"),
        [29] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 月宫吴刚"),
        [30] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 镇塔之神"),
        [31] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 慧觉和尚"),
        [32] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 疥癞和尚"),
        [33] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 吴举人"),
        [34] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 东海湾"),
        [35] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 江南野外"),
        [36] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 大唐国境"),
        [37] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 大唐境外"),
        [38] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 墨家村"),
        [39] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 长寿郊外"),
        [40] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 碗子山"),
        [41] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 小雷音寺"),
        [42] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 野猪王"),
        [43] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 仙缘洞天"),
        [44] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 柳林坡"),
        [45] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 北俱芦洲"),
        [46] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 丝绸之路"),
        [47] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 比丘国"),
        [48] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 须弥东界"),
        [49] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 海底5层"),
        [50] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 地狱4层"),
        [51] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 龙窟7层"),
        [52] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 凤巢7层"),
        [53] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 女娲神迹"),
        [54] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 方寸山"),
        [55] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 盘丝洞"),
        [56] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 天宫"),
        [57] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 天机城"),
        [58] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 女儿村"),
        [59] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 阴曹地府"),
        [60] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 普陀山"),
        [61] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 女魃墓"),
        [62] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 神木林"),
        [63] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 无底洞"),
        [64] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 凌波城"),
        [65] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 花果山"),
        [66] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 化生寺"),
        [67] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 魔王寨"),
        [68] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 五庄观"),
        [69] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 大唐官府"),
        [70] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 狮驼岭"),
        [71] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 龙宫"),
        [72] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 蓬莱仙岛"),
        [73] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 凌云渡"),
        [74] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 解阳山"),
        [75] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 麒麟山"),
        [76] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 子母河底"),
        [77] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 太岁府"),
        [78] = tp._按钮(tp._自适应(11,4,72,20,1,3),0,0,4,true,true," 月宫"),
    }
    self.resour={}
    self.窗口时间 = 0
    zts =根.字体表.华康字体
end

function 场景类_传送:打开()
    if  self.可视 then
        self.resour={}
        self.可视 = false
    else
        self.x = 120+(全局游戏宽度-800)/2
        insert(tp.窗口_,self)
        tp.运行时间 = tp.运行时间 + 3
        self.窗口时间 = tp.运行时间
        self.可视 = true
    end
end

function 场景类_传送:显示(dt,x,y)
    self.焦点 = false
    self.资源组[10]:更新(dt)
     self.资源组[4]:更新(x,y)
for i=11,78 do
  self.资源组[i]:更新(x,y)
   if self.资源组[i]:事件判断() then
        self:打开()
        collectgarbage("collect");
       if i==11 then
         客户端:发送数据(1,28444,13,"长安城")
        elseif i==12 then
         客户端:发送数据(1,28444,13,"建邺城")
        elseif i==13 then
         客户端:发送数据(1,28444,13,"傲来国")
        elseif i==14 then
         客户端:发送数据(1,28444,13,"长寿村")
        elseif i==15 then
         客户端:发送数据(1,28444,13,"西梁女国")
        elseif i==16 then
         客户端:发送数据(1,28444,13,"宝象国")
        elseif i==17 then
         客户端:发送数据(1,28444,13,"朱紫国")
        elseif i==18 then
         客户端:发送数据(1,28444,13,"钱庄老板")
        elseif i==19 then
         客户端:发送数据(1,28444,13,"钟馗")
        elseif i==20 then
         客户端:发送数据(1,28444,13,"袁天罡")
        elseif i==21 then
         客户端:发送数据(1,28444,13,"袁守城")
        elseif i==22 then
         客户端:发送数据(1,28444,13,"商会总管")
        elseif i==23 then
         客户端:发送数据(1,28444,13,"杜少海")
        elseif i==24 then
         客户端:发送数据(1,28444,13,"镖局")
        elseif i==25 then
         客户端:发送数据(1,28444,13,"皇宫护卫")
        elseif i==26 then
         客户端:发送数据(1,28444,13,"土地公公")
        elseif i==27 then
         客户端:发送数据(1,28444,13,"闯关使者")
        elseif i==28 then
         客户端:发送数据(1,28444,13,"百兽王")
        elseif i==29 then
         客户端:发送数据(1,28444,13,"月宫吴刚")
        elseif i==30 then
         客户端:发送数据(1,28444,13,"镇塔之神")
        elseif i==31 then
         客户端:发送数据(1,28444,13,"慧觉和尚")
        elseif i==32 then
         客户端:发送数据(1,28444,13,"疥癞和尚")
        elseif i==33 then
         客户端:发送数据(1,28444,13,"吴举人")
        elseif i==34 then
         客户端:发送数据(1,28444,13,"东海湾")
        elseif i==35 then
         客户端:发送数据(1,28444,13,"江南野外")
        elseif i==36 then
         客户端:发送数据(1,28444,13,"大唐国境")
        elseif i==37 then
         客户端:发送数据(1,28444,13,"大唐境外")
        elseif i==38 then
         客户端:发送数据(1,28444,13,"墨家村")
        elseif i==39 then
         客户端:发送数据(1,28444,13,"长寿郊外")
        elseif i==40 then
         客户端:发送数据(1,28444,13,"碗子山")
        elseif i==41 then
         客户端:发送数据(1,28444,13,"小雷音寺")
        elseif i==42 then
         客户端:发送数据(1,28444,13,"野猪王")
        elseif i==43 then
         客户端:发送数据(1,28444,13,"仙缘洞天")
        elseif i==44 then
         客户端:发送数据(1,28444,13,"柳林坡")
        elseif i==45 then
         客户端:发送数据(1,28444,13,"北俱芦洲")
        elseif i==46 then
         客户端:发送数据(1,28444,13,"丝绸之路")
        elseif i==47 then
         客户端:发送数据(1,28444,13,"比丘国")
        elseif i==48 then
         客户端:发送数据(1,28444,13,"须弥东界")
        elseif i==49 then
         客户端:发送数据(1,28444,13,"海底5层")
        elseif i==50 then
         客户端:发送数据(1,28444,13,"地狱4层")
        elseif i==51 then
         客户端:发送数据(1,28444,13,"龙窟7层")
        elseif i==52 then
         客户端:发送数据(1,28444,13,"凤巢7层")
        elseif i==53 then
         客户端:发送数据(1,28444,13,"女娲神迹")
        elseif i==54 then
         客户端:发送数据(1,28444,13,"方寸山")
        elseif i==55 then
         客户端:发送数据(1,28444,13,"盘丝洞")
        elseif i==56 then
         客户端:发送数据(1,28444,13,"天宫")
        elseif i==57 then
         客户端:发送数据(1,28444,13,"天机城")
        elseif i==58 then
         客户端:发送数据(1,28444,13,"女儿村")
        elseif i==59 then
         客户端:发送数据(1,28444,13,"阴曹地府")
        elseif i==60 then
         客户端:发送数据(1,28444,13,"普陀山")
        elseif i==61 then
         客户端:发送数据(1,28444,13,"女魃墓")
        elseif i==62 then
         客户端:发送数据(1,28444,13,"神木林")
        elseif i==63 then
         客户端:发送数据(1,28444,13,"无底洞")
        elseif i==64 then
         客户端:发送数据(1,28444,13,"凌波城")
        elseif i==65 then
         客户端:发送数据(1,28444,13,"花果山")
        elseif i==66 then
         客户端:发送数据(1,28444,13,"化生寺")
        elseif i==67 then
         客户端:发送数据(1,28444,13,"魔王寨")
        elseif i==68 then
         客户端:发送数据(1,28444,13,"五庄观")
        elseif i==69 then
         客户端:发送数据(1,28444,13,"大唐官府")
        elseif i==70 then
         客户端:发送数据(1,28444,13,"狮驼岭")
        elseif i==71 then
         客户端:发送数据(1,28444,13,"龙宫")
        elseif i==72 then
         客户端:发送数据(1,28444,13,"蓬莱仙岛")
        elseif i==73 then
         客户端:发送数据(1,28444,13,"凌云渡")
        elseif i==74 then
         客户端:发送数据(1,28444,13,"解阳山")
        elseif i==75 then
         客户端:发送数据(1,28444,13,"麒麟山")
        elseif i==76 then
         客户端:发送数据(1,28444,13,"子母河底")
        elseif i==77 then
         客户端:发送数据(1,28444,13,"太岁府")
        elseif i==78 then
         客户端:发送数据(1,28444,13,"月宫")
        end
      end
    end

    if  self.资源组[4]:事件判断() then
            self:打开(内容)
    end

    self.资源组[1]:显示(self.x,self.y)
    self.资源组[8]:显示(self.x+10,self.y+30)
    tp.窗口标题背景_:显示(self.x+self.资源组[1].宽度/2-90,self.y)
    zts:置颜色(0xFFFFFFFF):显示(self.x+self.资源组[1].宽度/2-30,self.y+3,"快捷传送")
    self.资源组[4]:显示(self.x+520,self.y+6,true)
 tp.字体表.华康字体:置颜色(0xFFFF0000):显示(self.x + 238,self.y + 40,"主城传送")
    self.资源组[11]:显示(self.x +13,self.y + 60,true,1)
    self.资源组[12]:显示(self.x +88,self.y + 60,true,1)
    self.资源组[13]:显示(self.x +163,self.y + 60,true,1)
    self.资源组[14]:显示(self.x +238,self.y + 60,true,1)
    self.资源组[15]:显示(self.x +313,self.y + 60,true,1)
    self.资源组[16]:显示(self.x +388,self.y + 60,true,1)
    self.资源组[17]:显示(self.x +463,self.y + 60,true,1)
 tp.字体表.华康字体:置颜色(0xFFFF0000):显示(self.x + 238,self.y + 90,"NPC传送")
    self.资源组[18]:显示(self.x +13,self.y + 120,true,1)
    self.资源组[19]:显示(self.x +88,self.y + 120,true,1)
    self.资源组[20]:显示(self.x +163,self.y + 120,true,1)
    self.资源组[21]:显示(self.x +238,self.y + 120,true,1)
    self.资源组[22]:显示(self.x +313,self.y + 120,true,1)
    self.资源组[23]:显示(self.x +388,self.y + 120,true,1)
    self.资源组[24]:显示(self.x +463,self.y + 120,true,1)
    self.资源组[25]:显示(self.x +13,self.y + 150,true,1)
    self.资源组[26]:显示(self.x +88,self.y + 150,true,1)
    self.资源组[27]:显示(self.x +163,self.y + 150,true,1)
    self.资源组[28]:显示(self.x +238,self.y + 150,true,1)
    self.资源组[29]:显示(self.x +313,self.y + 150,true,1)
    self.资源组[30]:显示(self.x +388,self.y + 150,true,1)
    self.资源组[31]:显示(self.x +463,self.y + 150,true,1)
    self.资源组[32]:显示(self.x +13,self.y + 180,true,1)
    self.资源组[33]:显示(self.x +88,self.y + 180,true,1)
 tp.字体表.华康字体:置颜色(0xFFFF0000):显示(self.x + 238,self.y + 200,"野外地图")
    self.资源组[34]:显示(self.x +13,self.y + 220,true,1)
    self.资源组[35]:显示(self.x +88,self.y + 220,true,1)
    self.资源组[36]:显示(self.x +163,self.y + 220,true,1)
    self.资源组[37]:显示(self.x +238,self.y + 220,true,1)
    self.资源组[38]:显示(self.x +313,self.y + 220,true,1)
    self.资源组[39]:显示(self.x +388,self.y + 220,true,1)
    self.资源组[40]:显示(self.x +463,self.y + 220,true,1)
    self.资源组[41]:显示(self.x +13,self.y + 250,true,1)
    self.资源组[42]:显示(self.x +88,self.y + 250,true,1)
    self.资源组[43]:显示(self.x +163,self.y + 250,true,1)
    self.资源组[44]:显示(self.x +238,self.y + 250,true,1)
    self.资源组[45]:显示(self.x +313,self.y + 250,true,1)
    self.资源组[46]:显示(self.x +388,self.y + 250,true,1)
    self.资源组[47]:显示(self.x +463,self.y + 250,true,1)
    self.资源组[48]:显示(self.x +13,self.y + 280,true,1)
    self.资源组[49]:显示(self.x +88,self.y + 280,true,1)
    self.资源组[50]:显示(self.x +163,self.y + 280,true,1)
    self.资源组[51]:显示(self.x +238,self.y + 280,true,1)
    self.资源组[52]:显示(self.x +313,self.y + 280,true,1)
    self.资源组[53]:显示(self.x +388,self.y + 280,true,1)
 tp.字体表.华康字体:置颜色(0xFFFF0000):显示(self.x + 238,self.y + 310,"门派传送")
    self.资源组[54]:显示(self.x +13,self.y + 330,true,1)
    self.资源组[55]:显示(self.x +88,self.y + 330,true,1)
    self.资源组[56]:显示(self.x +163,self.y + 330,true,1)
    self.资源组[57]:显示(self.x +238,self.y + 330,true,1)
    self.资源组[58]:显示(self.x +313,self.y + 330,true,1)
    self.资源组[59]:显示(self.x +388,self.y + 330,true,1)
    self.资源组[60]:显示(self.x +463,self.y + 330,true,1)
    self.资源组[61]:显示(self.x +13,self.y + 360,true,1)
    self.资源组[62]:显示(self.x +88,self.y + 360,true,1)
    self.资源组[63]:显示(self.x +163,self.y + 360,true,1)
    self.资源组[64]:显示(self.x +238,self.y + 360,true,1)
    self.资源组[65]:显示(self.x +313,self.y + 360,true,1)
    self.资源组[66]:显示(self.x +388,self.y + 360,true,1)
    self.资源组[67]:显示(self.x +463,self.y + 360,true,1)
    self.资源组[68]:显示(self.x +13,self.y + 390,true,1)
    self.资源组[69]:显示(self.x +88,self.y + 390,true,1)
    self.资源组[70]:显示(self.x +163,self.y + 390,true,1)
    self.资源组[71]:显示(self.x +238,self.y + 390,true,1)
 tp.字体表.华康字体:置颜色(0xFFFF0000):显示(self.x + 238,self.y + 420,"野外地图")
    self.资源组[72]:显示(self.x +13,self.y + 440,true,1)
    self.资源组[73]:显示(self.x +88,self.y + 440,true,1)
    self.资源组[74]:显示(self.x +163,self.y + 440,true,1)
    self.资源组[75]:显示(self.x +238,self.y + 440,true,1)
    self.资源组[76]:显示(self.x +313,self.y + 440,true,1)
    self.资源组[77]:显示(self.x +388,self.y + 440,true,1)
    self.资源组[78]:显示(self.x +463,self.y + 440,true,1)

end
return 场景类_传送